package com.example.mybatisee.dao;

import com.example.mybatisee.model.UserInfo;
import org.apache.catalina.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;

import javax.annotation.Priority;
import java.util.List;


@Controller
@Mapper
public interface UserInfoMapper {

    public int addUser(UserInfo userInfo);

    public UserInfo getUserByNameAndPassword(String username,String password);
    public List<UserInfo> getAll();
    public int delById(int id);
}
